/<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="1000" indicator-color="white">
      <van-swipe-item>1</van-swipe-item>
      <van-swipe-item>2</van-swipe-item>
      <van-swipe-item>3</van-swipe-item>
      <van-swipe-item>4</van-swipe-item>
    </van-swipe>
    <van-tabs v-model="active">
      <van-tab title="家电">
        <van-image
          width="10rem"
          height="10rem"
          fit="none"
          src="https://img01.yzcdn.cn/vant/cat.jpeg"
        />
      </van-tab>
      <van-tab title="美食">
        <van-image
          width="100"
          height="100"
          src="https://img01.yzcdn.cn/vant/cat.jpeg"
        />
      </van-tab>
      <van-tab title="游戏">
        <van-image
          width="10rem"
          height="10rem"
          fit="fill"
          src="https://img01.yzcdn.cn/vant/cat.jpeg"
        />
      </van-tab>
      <van-tab title="直播">
        <van-image
          width="100"
          height="100"
          src="https://img01.yzcdn.cn/vant/cat.jpeg"
        />
      </van-tab>
    </van-tabs>
  </div>
</template>

<script>
import { Swipe, SwipeItem } from "vant";
import { Tab, Tabs } from "vant";
import { Image as VanImage } from "vant";
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
}
</style>